package com.bwie.groupon.feign;

import com.bwie.groupon.feign.fallback.UserFeignServiceFallBack;
import com.bwie.groupon.to.UserTo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "user",fallback= UserFeignServiceFallBack.class )
public interface UserFeignService {


    @RequestMapping("/user/user/getUser")
    UserTo getUserById(@RequestParam("userId") Integer userId);









}
